package user;

import MyThrowable.IDRepeatWrongful;
import operations.IOperation;
import student.StudentList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-12-14
 * Time: 6:59
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }
    public  abstract int menu();
    public void doOperation(int choice, StudentList studentList) {

        iOperations[choice].work(studentList);
    }
}
